import request from '@/utils/request'

// 查询雨量观测点列表
export function listRainStation(query) {
  return request({
    url: '/manage/rainStation/list',
    method: 'get',
    params: query
  })
}

// 查询雨量观测点详细
export function getRainStation(rainStationId) {
  return request({
    url: '/manage/rainStation/' + rainStationId,
    method: 'get'
  })
}

// 新增雨量观测点
export function addRainStation(data) {
  return request({
    url: '/manage/rainStation',
    method: 'post',
    data: data
  })
}

// 修改雨量观测点
export function updateRainStation(data) {
  return request({
    url: '/manage/rainStation',
    method: 'put',
    data: data
  })
}

// 删除雨量观测点
export function delRainStation(rainStationId) {
  return request({
    url: '/manage/rainStation/' + rainStationId,
    method: 'delete'
  })
}
